home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 1-4 / Prograph Reference 1-4.rsrc / TEXT_149.txt < prev    next >
Encoding:
Text File  |  1995-10-21  |  2.1 KB  |  61 lines

  1.  
  2. t    Apple Events*123*
  3.  
  4. To send Apple Events from Prograph applications you should have some familiarity with the Apple Event Object model and with the Apple Event Registry, which defines Apple Event suites and their particulars. The same applies to sending Apple Events to the Prograph Interpreter, with the addition that you could also use an Apple Event scripting environment such as Frontier to send IAC messages.
  5.  
  6. Prograph Interpreter Apple Events*123*
  7.  
  8. The Prograph Classic Interpreter supports the following Apple Events:
  9.  
  10. Required Suite*123*
  11.  
  12. Open Application
  13.  
  14. Open Document
  15.  
  16. Print Document
  17.  
  18. Quit Application
  19.  
  20. Miscellaneous Standard Suite*123*
  21.  
  22. Do Menu
  23.  
  24. Core Suite*123*
  25.  
  26. Open (for method windows)
  27.  
  28. Close (for windows )
  29.  
  30. Do Menu*124*
  31.  
  32. The direct parameter of the Do Menu Apple Event is a long integer with the menu ID in the high word and the menu item ID in the low word. Prograph menus are numbered from left to right starting at 513. The Apple menu is 512. Menu items are numbered from top to bottom, starting with 1, and including dashed lines.  Do Menu also has an optional menu name parameter which Prograph ignores.
  33.  
  34. Open Method Window*124*
  35.  
  36. To specify a method window, use an object specifier with:
  37.  
  38.  DesiredClassField = cWindow
  39.  ContainerField = typeNull
  40.  KeyFormField = formName
  41.  KeyDataField = typeText
  42.  
  43. The first character of the KeyDataField indicates the type of method: 
  44.  
  45. I    instance method; 
  46. G    get method;
  47. S    set method; 
  48. P    plain method. 
  49.  
  50. The rest of KeyDataField should be a string of the form ‚ÄúclassName/methodName‚Äù for a class method or ‚ÄúmethodName‚Äù for a universal method.
  51.  
  52. Close Window*124*
  53.  
  54. To specify the window to close use an object specifier with:
  55.  
  56.  DesiredClassField = cWindow
  57.  ContainerField = typeNull
  58.  KeyFormField = formName
  59.  KeyDataField = typeText
  60.  
  61. The first character of the KeyDataField is used to distinguish between different types of method windows:  ‚ÄúI‚Äù, instance method; ‚ÄúG‚Äù, get method; ‚ÄúS‚Äù, set method; ‚ÄúP‚Äù, plain method. For other windows the first character should be ‚Äú ‚Äù (space). The rest of the text of KeyDataField must exactly match the text which appears in the title bar of the window.*124*